
package com.terren.webdig.common.config;

import java.io.File;


/**
 * 通过配置文件，在启动时，初始化
 * @author Administrator
 *
 */
public class ConfigInfo {
	
	public static String SESSION_USER = "loginUser";//存入session 的key
	public static String SESSION_FUNCTION = "function";//存入session 的key,添加系统日志的时候会用到
	
	/** 不需要拦截的 action **/
	public  static String opActionValue = "user/opfun";
	/** 需要拦截的 action **/
	public  static String ActionValue = "user/fun";
	/** 不需要授权的 action **/
	public  static String deActionValue = "user/defun";
	/** 首页地址 **/
	public  static String mainPage = "/page/common/main.jsp";
	
	
	/** 项目外文件路径 **/
	public static String OUTSIDE_PATH;
	
	/** 配置文件路径 */
	public static String PROPERTIES_PATH = "WEB-INF"+String.valueOf(File.separator)+"classes"+String.valueOf(File.separator)+"config"+String.valueOf(File.separator)+"properties"+String.valueOf(File.separator)+"systemConfig.properties";
	
	public static String NO_PERMISSION_PAGE = "/page/common/noPermission.jsp";
	
	public static String NO_PERMISSION_PAGE_TITLE = "没有权限";
	
	/** 字符集*/
    public static String GBK = "GBK";
    public static String GB2312 = "GB2312";
    public static String ISO8859_1 = "ISO-8859-1";
    public static String UTF8 = "UTF-8";
    /** PI值 */
	public static Double Pi = 31415926.00;
	/** 时间戳 */
	public static String TIMESTAMP_FORMAT = "yyyyMMddHHmmssSSS";
	
	/** 页面样式 */
	public static String FUNCTION_ICON = "clipboard";//功能 显示的默认图标
	
	public static Integer ACTIONID=1;
	
	/**
	 * ************************************系统参数 begin*****************************************
	*/
	public static Integer SOCKET_TIME_OUT=1000*300; //http 读取数据timeout
	public static Integer CONNECTION_TIME_OUT=1000*300;// 建立连接timeout
	public static Integer CONNECTION_REQUEST_TIME_OUT = 1000*300;

	/**
	 * ************************************echarts图片参数  end*****************************************
	 */
	//eCharts图例配色方案
	public static String[]	COLORS = {"#599AD3","#79C36A","#F9A65A",
			"#F1595F","#CF893E","#9E66AB","#CD7058","#D77FB3",
			"#1547AE","#54884A","#3E6B93","#3E6B93","#A83E42","#905F2B",
			"#6E4777","#8F4E3D","#96587D"};
	public static String XML_ROOT = "data/bean";// 默认 xml data节点
	public static String JSON_ROOT = "data"; // 默认 json data 节点
	
}
